/*	
	WeaponFEP.h
	Focused Energy Pulse
	(c)2008 Palestar, Richard Lyle
*/

#ifndef WEAPON_FEP_H
#define WEAPON_FEP_H

#include "Game/Constants.h"
#include "Game/GadgetBeamWeapon.h"



//----------------------------------------------------------------------------

class WeaponFEP : public GadgetBeamWeapon
{
public:
	DECLARE_WIDGET_CLASS();

	// NounGadget interface
	Type type() const
	{
		return WEAPON_CLOSE;
	}
	int maxDamage() const
	{
		return (2500 + (level() * 100))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int addValue() const
	{
		return 2500;
	}
	int buildTechnology() const
	{
		return 45;
	}
	int	buildCost() const
	{
		return 45;
	}
	dword buildFlags() const
	{
		return NounPlanet::FLAG_METALS;
	}
	int buildTime() const
	{
		return 180;
	}

	// GadgetWeapon interface
	int energyCost() const
	{
		return (900 + (level() *100))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_ENERGY );
	}
	int energyCharge() const
	{
		return (9 + ceil ((level() * 0.5)))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_COOLDOWN );
	}
	int damage() const
	{
		return (50 + (level() * 5))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int damageRandom() const
	{
		return (10 + (level() * 3))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_DAMAGE );
	}
	int damageFalloff() const
	{
		return 0;
	}
	dword damageType() const
	{
		return DAMAGE_ENERGY;
	}
	int duration() const
	{
		return 40;
	}
	float length() const
	{
		return (250.0f + (level() * 10.0f))* enhancementModifier( enhancementSystem(), NounEnhancement::MT_RANGE );
	}
	int repairRate() const
	{
		return 4;
	}
};

//----------------------------------------------------------------------------



#endif

//----------------------------------------------------------------------------
// EOF
